Apple Watch for Developers by Gary Riches Ruben Martinez Jamie Maison Matt Klosterman & Mark Griffin

Apple Watch for Developers by Gary Riches Ruben Martinez Jamie Maison Matt Klosterman & Mark Griffin

Author:Gary Riches, Ruben Martinez, Jamie Maison, Matt Klosterman & Mark Griffin
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


When you press the button, you should be taken back to the menu choice of whichever navigation style you’d like to see.

Apple Watch Settings

We’ve seen how some context sensitive menus or settings can be displayed on the Watch using Force Touch, but what about more general settings or configurations? For those we will use WatchKit settings bundles.

The settings you store in your settings bundle are ideally suited to values that change infrequently and that you will use to configure your app’s behavior or appearance. The settings bundle is contained inside of your containing iOS app, and the settings themselves are displayed by the Apple Watch app on the user’s iPhone.

A WatchKit settings bundle works in the same way as an iOS settings bundle. The settings bundle defines the controls you want displayed by the system and the name of the preference that each control modifies. The Apple Watch app on the user’s iPhone takes the settings bundle information and uses it to display the controls to the user. When the user changes the value of a control, the system updates the underlying value.

We’re going to add a selection into our settings that will launch the app directly in to one of our navigation types. Let’s start by creating our WatchKit settings bundle. 1.Right-click the watchkitdemo group in the project navigator and select New File…, then iOS ➤ Apple Watch ➤ WatchKit Settings Bundle followed by Next.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.